#ifndef BHXJGLTACHOMETER_H
#define BHXJGLTACHOMETER_H
#include "BHXJControls_global.h"
#include "BHXJGLHelper/bhxjglshader.h"
#include "BHXJGLHelper/bhxjglmodel.h"
#include "BHXJGLHelper/bhxjglinclude.h"
#include<vector>
#include "BHXJRegularModel/bhxjglpie.h"
#include "BHXJRegularModel/bhxjglcolumn.h"
#include "BHXJGLHelper/bhxjglttf.h"
#include<QString>

class BHXJCONTROLS_EXPORT BHXJGLTachometer:public BHXJGLModel<BHXJGLFUN*>
{
public:
    BHXJGLTachometer();
    virtual ~BHXJGLTachometer()override;

    void Init(BHXJGLFUN *arg) override;
    void Paint(const BHXJGLPaintParam &p) override;


    glm::vec3 viewPos(){return _viewPos;}
    void setviewPos(glm::vec3 value){_viewPos=value;}

    float Rpm(){return _Rpm;}
    void setRpm(float value){_Rpm=value;}



protected:
    float _Rpm=0;
    glm::vec3 _viewPos{0};
    BHXJGLTTF *ttf;
};
#endif // BHXJGLTACHOMETER_H
